package com.gosophia.conferenceManagement.starting.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.gosophia.commons.persistence.BaseDao;
import com.gosophia.conferenceManagement.starting.entity.ConferenceStartingTransientStore;

/**
 * 会议发起暂存DAO
 * 
 * @author tianchunyu
 * 
 */
@Component
public class ConferenceTransientStoreDAO extends
		BaseDao<ConferenceStartingTransientStore, Long> {

	public ConferenceStartingTransientStore getTransientInfoByCreator(
			Long userInfo) {
		List<ConferenceStartingTransientStore> list = this.getListByNamedQuery(
				"conferenceTransientStoreDAO.getTransientInfoByCreator",
				userInfo);
		if (list == null || list.size() == 0) {
			return null;
		} else {
			return list.get(0);
		}
	}

	

}
